#include <iostream>
using namespace std;

class Fraction
{
private:
    int denominator;
    int numerator;
public:
    Fraction();
    ~Fraction();
    void set();
    void get();
};

Fraction::Fraction()
{
    set();
}

Fraction::~Fraction()
{
    cout<<"thank you for using"<<endl;
}
void Fraction::set()
{
    cout<<"请输入分母"<<endl;
    cin>>denominator;
    cout<<"请输入分子"<<endl;
    cin>>numerator;
}
void Fraction::get()
{
    cout<<"分数："<<numerator<<"/"<<denominator<<endl;
}

int main(int argc,char*argv[])
{
    Fraction *p=new Fraction();
    p->get();
    delete p;
    
    return 0;
}
